INCLUDES = -I../include  $(GLOBAL_CFLAG)

libui_LTLIBRARIES = libcli.la  libgosd.la  

libcli_la_SOURCES = ui_cli.c ui_cli.h
libcli_la_LIBADD = $(GLIB_LIBS)  -lncurses -lreadline  ../liblyricplayer.la
libcli_la_CFLAGS = $(GLIB_CFLAGS)

libgosd_la_SOURCES = ghosd.c ghosd.h ghosd_internal.h ui_gosd.c
libgosd_la_LIBADD = $(GLIB_LIBS) $(PANGOCAIRO_LIBS) $(GTK_LIBS) \
					$(GTHREAD_LIBS)  $(GNOME_LIBS) $(LIBGLADE_LIBS) \
					$(NOTIFY_LIBS) ../liblyricplayer.la
libgosd_la_CFLAGS = $(GLIB_CFLAGS)  $(PANGOCAIRO_CFLAGS) $(GTK_CFLAGS) \
					$(GTHREAD_CFLAGS) $(GNOME_CFLAGS)  $(LIBGLADE_CFLAGS) \
					$(NOTIFY_CFLAGS) \
					-DLYRICPLAYER_GLADEDIR=\"$(datadir)/lyricplayer\" \
					-DICON_PATH=\"$(datadir)/pixmaps/lyricplayer.png\"

glade_files =  manual_search.glade preferences.glade
glade_DATA = $(glade_files)
gladedir = $(datadir)/lyricplayer

manual_search.glade:manual_search.glade.in
	sed -e "s|\@ICON_PATH\@|$(datadir)/pixmaps/lyricplayer.png|" $< > $@ 
preferences.glade:preferences.glade.in
	sed -e "s|\@ICON_PATH\@|$(datadir)/pixmaps/lyricplayer.png|" $< > $@ 

desktop_files = lyricplayer_gosd.desktop
desktop_DATA = $(desktop_files)
desktopdir = $(datadir)/applications

CLEANFILES = $(glade_files)
# new ui modules to be added here
EXTRA_DIST =  $(glade_files:.glade=.glade.in) $(desktop_files)

libuidir = $(pkglibdir)/UI



